// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addPost POST /api/favoritePost/add */
export async function addPostUsingPost(
  body: API.FavoritePostAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/favoritePost/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deletePost POST /api/favoritePost/delete */
export async function deletePostUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/favoritePost/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getFavoritePostVOById GET /api/favoritePost/get/vo */
export async function getFavoritePostVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFavoritePostVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFavoritePostVO_>('/api/favoritePost/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listFavoritePostVOByPage POST /api/favoritePost/list/page/vo */
export async function listFavoritePostVoByPageUsingPost(
  body: API.FavoritePostQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageFavoritePostVO_>('/api/favoritePost/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
